package cc.magicjson.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@ConfigurationProperties(prefix = "server")
public class ServerConfig {
    private int port = 8080;
    private int backPort = 9999;

    // getters and setters

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getBackPort() {
        return backPort;
    }

    public void setBackPort(int backPort) {
        this.backPort = backPort;
    }
}
